package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OvertimepayapplicationsMapper;
import com.ruoyi.system.domain.Overtimepayapplications;
import com.ruoyi.system.service.IOvertimepayapplicationsService;

/**
 * 加班申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
@Service
public class OvertimepayapplicationsServiceImpl implements IOvertimepayapplicationsService 
{
    @Autowired
    private OvertimepayapplicationsMapper overtimepayapplicationsMapper;

    /**
     * 查询加班申请
     * 
     * @param id 加班申请主键
     * @return 加班申请
     */
    @Override
    public Overtimepayapplications selectOvertimepayapplicationsById(Long id)
    {
        return overtimepayapplicationsMapper.selectOvertimepayapplicationsById(id);
    }

    /**
     * 查询加班申请列表
     * 
     * @param overtimepayapplications 加班申请
     * @return 加班申请
     */
    @Override
    public List<Overtimepayapplications> selectOvertimepayapplicationsList(Overtimepayapplications overtimepayapplications)
    {
        return overtimepayapplicationsMapper.selectOvertimepayapplicationsList(overtimepayapplications);
    }

    /**
     * 新增加班申请
     * 
     * @param overtimepayapplications 加班申请
     * @return 结果
     */
    @Override
    public int insertOvertimepayapplications(Overtimepayapplications overtimepayapplications)
    {
        return overtimepayapplicationsMapper.insertOvertimepayapplications(overtimepayapplications);
    }

    /**
     * 修改加班申请
     * 
     * @param overtimepayapplications 加班申请
     * @return 结果
     */
    @Override
    public int updateOvertimepayapplications(Overtimepayapplications overtimepayapplications)
    {
        return overtimepayapplicationsMapper.updateOvertimepayapplications(overtimepayapplications);
    }

    /**
     * 批量删除加班申请
     * 
     * @param ids 需要删除的加班申请主键
     * @return 结果
     */
    @Override
    public int deleteOvertimepayapplicationsByIds(Long[] ids)
    {
        return overtimepayapplicationsMapper.deleteOvertimepayapplicationsByIds(ids);
    }

    /**
     * 删除加班申请信息
     * 
     * @param id 加班申请主键
     * @return 结果
     */
    @Override
    public int deleteOvertimepayapplicationsById(Long id)
    {
        return overtimepayapplicationsMapper.deleteOvertimepayapplicationsById(id);
    }
}
